package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the FEEDBACKTYPE database table.
 * 
 */
@Entity
public class Feedbacktype implements Serializable {
	private static final long serialVersionUID = 1L;
	private int feedbacktypeid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String feedbacktypedesc;
	private String feedbacktypename;
	private String isactive;
	private List<Userfeedbacktype> userfeedbacktypes;

    public Feedbacktype() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getFeedbacktypeid() {
		return this.feedbacktypeid;
	}

	public void setFeedbacktypeid(int feedbacktypeid) {
		this.feedbacktypeid = feedbacktypeid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getFeedbacktypedesc() {
		return this.feedbacktypedesc;
	}

	public void setFeedbacktypedesc(String feedbacktypedesc) {
		this.feedbacktypedesc = feedbacktypedesc;
	}


	public String getFeedbacktypename() {
		return this.feedbacktypename;
	}

	public void setFeedbacktypename(String feedbacktypename) {
		this.feedbacktypename = feedbacktypename;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	//bi-directional many-to-one association to Userfeedbacktype
	@OneToMany(mappedBy="feedbacktype")
	public List<Userfeedbacktype> getUserfeedbacktypes() {
		return this.userfeedbacktypes;
	}

	public void setUserfeedbacktypes(List<Userfeedbacktype> userfeedbacktypes) {
		this.userfeedbacktypes = userfeedbacktypes;
	}
	
}